<?php
namespace Controllers\Admin;
use DB\UserService;

/**
 * @author Eugene Baranov <evgeny@baranov.ru>
 */
class User extends Base {

    /**
     * @var UserService
     */
    protected $userService;

    public function __construct() {
        parent::__construct();

        $this->userService = new UserService();
        $this->setView('User');
    }

    public function index(array $param) {
        $list = $this->userService->getUserList();
        return array('users' => $list);
    }
}